export const state = () => ({

});

export const mutations = {

};

export const actions = {
  //异步获取城市的相关数据；
  asyncGetCityData(context, city) {
    return this.$axios.get("/cities", {
      params: {
        name: city,
      },
    })
  },
  asyncGetCurrentHotelMsg(context, hotelId) {
    return this.$axios.get("/hotels", {
      params: {
        id: hotelId,
      },
    })
  },

}
